﻿<%@ Application Language="C#" %>

<script runat="server">

    void Application_Start(object sender, EventArgs e) 
    {
        Application["SL_Online"] = 0;
    }
    
    void Application_End(object sender, EventArgs e) 
    {
        //  Code that runs on application shutdown

    }
        
    void Application_Error(object sender, EventArgs e) 
    { 
        // Code that runs when an unhandled error occurs

    }

    void Session_Start(object sender, EventArgs e) 
    {
        Application["SL_Online"] = (int)Application["SL_Online"] + 1;
        
        Session["ID"] = "";
        Session["HoTen"] = "";
               
    }

    void Session_End(object sender, EventArgs e) 
    {
        Application["SL_Online"] = (int)Application["SL_Online"] - 1;
       
        Session["ID"] = "";
        Session["HoTen"] = "";
    }
       
</script>
